package com.zmn.plat.services.interfaces.msg.receive.position.conf;

import java.util.List;

import com.zmn.plat.model.entity.msg.receive.position.conf.MsgReceivePositionConf;
import com.zmn.plat.model.entity.msg.receive.position.conf.MsgReceivePositionConfQuery;
import com.zmn.plat.model.vo.msg.receive.position.conf.OrgPermitTreeVO;

/**
 * 消息配置-接收信息岗位配置
 *
 * @author linfeng
 *
 * @since 2020-05-18 14:50:14
 */
public interface MsgReceivePositionConfService {
    /**
     * 根据主键查询
     * 
     * @param id
     *            ID
     * @return
     */
    MsgReceivePositionConf findByKey(Integer id);

    /**
     * 查询接收信息岗位树VO
     *
     * @param msgId
     * @return
     */
    List<OrgPermitTreeVO> listOrgPermitTreeVOByMsgId(Integer msgId);

    /**
     * 分页搜索
     * 
     * @param query
     *            条件
     * @return 列表
     */
    List<MsgReceivePositionConf> listPageByQuery(MsgReceivePositionConfQuery query);

    /**
     * 搜索
     * 
     * @param query
     *            条件
     * @return
     */
    List<MsgReceivePositionConf> listByQuery(MsgReceivePositionConfQuery query);

    /**
     * 所有数据
     * 
     * @return
     */
    List<MsgReceivePositionConf> listAll();

    /**
     * 统计
     * 
     * @param query
     *            条件
     * @return
     */
    Integer countByQuery(MsgReceivePositionConfQuery query);

    /**
     * 更新
     * 
     * @param msgReceivePositionConf
     * @return
     */
    Integer updateByKey(MsgReceivePositionConf msgReceivePositionConf);

    /**
     * 插入
     * 
     * @param msgReceivePositionConf
     * @return
     */
    Integer insert(MsgReceivePositionConf msgReceivePositionConf);

    /**
     * 批量插入
     *
     * @param msgReceivePositionConfs
     * @return
     */
    Integer insertBatch(List<MsgReceivePositionConf> msgReceivePositionConfs);

    /**
     * 删除
     * 
     * @param id
     *            ID
     * @return
     */
    Integer deleteByKey(Integer id);

    /**
     * 根据消息ID删除接收信息岗位数据
     * 
     * @param msgId
     * @return
     */
    Integer deleteByMsgId(Integer msgId);

}
